<script setup>
import { toRefs, ref, onMounted, watch } from 'vue';
import { CloseBold, Search } from '@element-plus/icons-vue';
import { ElDialog, ElIcon, ElInput, ElTransfer, ElTree } from 'element-plus';

const props = defineProps({
  orgboxShow: Boolean,
  isOnly: {
    type: Number,
    default: 0, // 0-代表单选, 1-代表多选
  },
});
const { orgboxShow } = toRefs(props);
const emit = defineEmits(['closeChangeBoxShowDialog', 'handleUserInfo']);

const treeData = ref([
  {
    officeId: '46',
    parentId: null,
    parentName: '',
    parentIds: null,
    name: '凤城市政府',
    code: '118100',
    area: '',
    type: 2,
    address: '',
    zipCode: '',
    master: '吴春齐',
    masterName: null,
    phone: '123445674',
    fax: '',
    email: '2043202663@qq.com',
    enable: 1,
    createBy: '3',
    createTime: '2023-06-19 13:40:18',
    updateBy: '3',
    updateTime: '2023-12-21 15:46:33',
    encoded: '0001',
    child: [
      {
        officeId: '113',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '大数据局(指挥中心)',
        code: '暂无',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: 'a',
        masterName: null,
        phone: 'a',
        fax: null,
        email: '9999999999aaaa999999abcaaa',
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 16:56:50',
        updateBy: '3',
        updateTime: '2023-12-25 10:25:16',
        encoded: '00010035',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '112',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '政府督查室',
        code: '暂无',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:31:41',
        updateBy: null,
        updateTime: null,
        encoded: '00010034',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '111',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '城乡管理执法中心',
        code: '暂无',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:31:33',
        updateBy: null,
        updateTime: null,
        encoded: '00010033',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '110',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '交通运输局',
        code: '暂无',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:31:24',
        updateBy: null,
        updateTime: null,
        encoded: '00010032',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '109',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '生态环境局',
        code: '暂无',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:31:16',
        updateBy: null,
        updateTime: null,
        encoded: '00010031',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '108',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '发改局',
        code: '暂无',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:31:08',
        updateBy: null,
        updateTime: null,
        encoded: '00010030',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '107',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '应急局',
        code: '暂无',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:30:57',
        updateBy: null,
        updateTime: null,
        encoded: '00010029',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '106',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '农业农村局',
        code: '暂无',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:30:49',
        updateBy: null,
        updateTime: null,
        encoded: '00010028',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '105',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '水利局',
        code: '暂无',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:30:41',
        updateBy: null,
        updateTime: null,
        encoded: '00010027',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '104',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '自然资源局',
        code: '暂无',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:30:33',
        updateBy: null,
        updateTime: null,
        encoded: '00010026',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '103',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '住建局',
        code: '暂无',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:30:24',
        updateBy: null,
        updateTime: null,
        encoded: '00010025',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '102',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '公安局',
        code: '暂无',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:30:14',
        updateBy: null,
        updateTime: null,
        encoded: '00010024',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '101',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '营商局',
        code: '暂无',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:30:05',
        updateBy: null,
        updateTime: null,
        encoded: '00010023',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '100',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '林草局',
        code: '暂无',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:29:33',
        updateBy: null,
        updateTime: null,
        encoded: '00010022',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '99',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '大堡蒙古族乡',
        code: '118115',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:28:15',
        updateBy: null,
        updateTime: null,
        encoded: '00010021',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '98',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '青城子镇',
        code: '118107',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:28:08',
        updateBy: null,
        updateTime: null,
        encoded: '00010020',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '97',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '四门子镇',
        code: '118106',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:27:58',
        updateBy: null,
        updateTime: null,
        encoded: '00010019',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '96',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '通远堡镇',
        code: '118105',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:27:48',
        updateBy: null,
        updateTime: null,
        encoded: '00010018',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '95',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '刘家河镇',
        code: '118103',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:27:36',
        updateBy: null,
        updateTime: null,
        encoded: '00010017',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '94',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '鸡冠山镇',
        code: '118102',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:27:24',
        updateBy: null,
        updateTime: null,
        encoded: '00010016',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '93',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '弟兄山镇',
        code: '118108',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:27:15',
        updateBy: null,
        updateTime: null,
        encoded: '00010015',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '92',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '赛马镇',
        code: '118113',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:27:05',
        updateBy: null,
        updateTime: null,
        encoded: '00010014',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '91',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '爱阳镇',
        code: '118100',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:26:54',
        updateBy: null,
        updateTime: null,
        encoded: '00010013',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '90',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '大兴镇',
        code: '118111',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:26:34',
        updateBy: null,
        updateTime: null,
        encoded: '00010012',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '89',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '石城镇',
        code: '118116',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:26:24',
        updateBy: null,
        updateTime: null,
        encoded: '00010011',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '88',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '东汤镇',
        code: '118114',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:26:15',
        updateBy: null,
        updateTime: null,
        encoded: '00010010',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '87',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '边门镇',
        code: '118119',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:26:05',
        updateBy: null,
        updateTime: null,
        encoded: '00010009',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '86',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '蓝旗镇',
        code: '118126',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:25:54',
        updateBy: null,
        updateTime: null,
        encoded: '00010008',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '85',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '红旗镇',
        code: '118125',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:25:44',
        updateBy: null,
        updateTime: null,
        encoded: '00010007',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '84',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '沙里寨镇',
        code: '118127',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:25:36',
        updateBy: null,
        updateTime: null,
        encoded: '00010006',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '83',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '白旗镇',
        code: '118124',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:25:25',
        updateBy: null,
        updateTime: null,
        encoded: '00010005',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '82',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '宝山镇',
        code: '118123',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:25:07',
        updateBy: null,
        updateTime: null,
        encoded: '00010004',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '81',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '草河街道',
        code: '118109',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:24:50',
        updateBy: null,
        updateTime: null,
        encoded: '00010003',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '80',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '凤山街道',
        code: '118199',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: null,
        masterName: null,
        phone: null,
        fax: null,
        email: null,
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:24:36',
        updateBy: null,
        updateTime: null,
        encoded: '00010002',
        child: [],
        isDeleted: 0,
      },
      {
        officeId: '79',
        parentId: '46',
        parentName: '凤城市政府',
        parentIds: '46',
        name: '凤凰城街道',
        code: '118100',
        area: null,
        type: 2,
        address: null,
        zipCode: null,
        master: '暂无',
        masterName: null,
        phone: '暂无',
        fax: null,
        email: '暂无',
        enable: 1,
        createBy: '3',
        createTime: '2023-12-21 15:20:29',
        updateBy: null,
        updateTime: null,
        encoded: '00010001',
        child: [],
        isDeleted: 0,
      },
    ],
    isDeleted: 0,
  },
]);
const defaultExpanded = ref([]);
const userList = ref([
  {
    userId: '3',
    username: 'admin',
    password: '$2a$10$RJNBVY0a99vsCrc8XP7kneJd/0epxEe9PUV0vjSTKWTxgE1o86nA.',
    realName: '超级管理员',
    email: null,
    gender: null,
    image: null,
    createTime: '2022-10-14 15:05:35',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '46',
    companyName: null,
  },
  {
    userId: '108',
    username: 'mengguzu_1',
    password: '$2a$10$Q5NQLytDTxFsU/ao0XzWN.2ZDctfJGX4Ksq0lT1ut7bqJU.6XXFqq',
    realName: '大堡蒙古族乡1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:47',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '99',
    companyName: null,
  },
  {
    userId: '109',
    username: 'lincao_1',
    password: '$2a$10$sIF88qlI3EKCvSoU.y4TauYvRRvBqk85yZIviVPPjMnYoY/6A16eO',
    realName: '林草局1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:47',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '100',
    companyName: null,
  },
  {
    userId: '110',
    username: 'mengguzu_2',
    password: '$2a$10$hYPEPCDTeq98KrhmldVqA.BipfmCZlThBbzp5ClREwV/I6E7vdO0q',
    realName: '大堡蒙古族乡2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:47',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: 'a',
    city: null,
    companyId: '99',
    companyName: null,
  },
  {
    userId: '111',
    username: 'lincao_2',
    password: '$2a$10$oE9snaP7CH4D3cgdj2JBFecI75uEJqX8Eq8DwmcyKYA6Lf1YWoQ/u',
    realName: '林草局2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:47',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '100',
    companyName: null,
  },
  {
    userId: '112',
    username: 'yingshang_1',
    password: '$2a$10$bzT/cRs8k3IL9PuHGkkt1O90j5dN.N7jD.YkHamnRN2l90BMTqDpe',
    realName: '营商局1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:47',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '101',
    companyName: null,
  },
  {
    userId: '113',
    username: 'yingshang_2',
    password: '$2a$10$XxE4dwVKs.ICqCd4cqguEeB54HhQZnikdpE38YdBjGfN808.AaPmG',
    realName: '营商局2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:47',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '101',
    companyName: null,
  },
  {
    userId: '114',
    username: 'gongan_1',
    password: '$2a$10$624A9HXll6o7imYl6O6gyO0y4wfo8HUiXIVekYLUUScheM2uuwlYW',
    realName: '公安局1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:48',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '102',
    companyName: null,
  },
  {
    userId: '115',
    username: 'zhujian_1',
    password: '$2a$10$tHIoY5anNStYkp16bqGoRu00OuS8uK01uToaVpmO8y1lGmezC3FKW',
    realName: '住建局1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:48',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '103',
    companyName: null,
  },
  {
    userId: '116',
    username: 'gongan_2',
    password: '$2a$10$CJ46E0HjQ1TqOpUfq8sagOO9Wo/yoVpG/HuFbZMP2V8770PG4Sbs6',
    realName: '公安局2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:48',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '102',
    companyName: null,
  },
  {
    userId: '117',
    username: 'zhujian_2',
    password: '$2a$10$F4dbsISMiQ5T9E6uWHYJAubWEeAi.kDpod6kg9hbE1ODMRUfuMIKS',
    realName: '住建局2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:48',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '103',
    companyName: null,
  },
  {
    userId: '118',
    username: 'ziranziyuan_1',
    password: '$2a$10$a6pOjqtqXgDwA.fdM.X9.uh7VDw.9/QYi1RNShIb7ggwRp8Rn.t0.',
    realName: '自然资源局1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:48',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '104',
    companyName: null,
  },
  {
    userId: '119',
    username: 'ziranziyuan_2',
    password: '$2a$10$UfLB9yp7r8J.T1s7XinKku3VOk17V8ZVD8zADt9UfCIiTI44ih.fe',
    realName: '自然资源局2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:48',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '104',
    companyName: null,
  },
  {
    userId: '120',
    username: 'shuili_1',
    password: '$2a$10$MwnGWtZjW7hPOGoznnQYL.r9UvMYhkqiCj9WVVwpxQb96JQHprip6',
    realName: '水利局1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:48',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '105',
    companyName: null,
  },
  {
    userId: '121',
    username: 'shuili_2',
    password: '$2a$10$ngphU9DtYPs/K3U4GKVbLuwRXOARlh0aSgeBOpmpVszEL2WCKTy1.',
    realName: '水利局2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:48',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '105',
    companyName: null,
  },
  {
    userId: '122',
    username: 'yingji_2',
    password: '$2a$10$Luto13S1QaJWtth9YnpV9OLx//B8ag5pw4dcVZb2Me4fHwBQSTxly',
    realName: '应急局2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:48',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '107',
    companyName: null,
  },
  {
    userId: '123',
    username: 'fagai_1',
    password: '$2a$10$wGCmKfsAFKpnXt.g8IODsO.JQlf0EyOMv8Goc5MF/PmfBE6QmQjCS',
    realName: '发改局1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:48',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '108',
    companyName: null,
  },
  {
    userId: '124',
    username: 'nongyenongcun_2',
    password: '$2a$10$vsJP9Uz.tuTifGC01vbj.OkqRsXXWB/AymJfgHzAX07j8x/RRbYCi',
    realName: '农业农村局2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:48',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '106',
    companyName: null,
  },
  {
    userId: '125',
    username: 'nongyenongcun_1',
    password: '$2a$10$2ggjpvpK6WOiaWFp1Di3W.bbf.KIeO8V1z54sHOyVFfSAm.on/jKG',
    realName: '农业农村局1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:48',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '106',
    companyName: null,
  },
  {
    userId: '126',
    username: 'yingji_1',
    password: '$2a$10$8wwLLt8K6HWU8TIMfm.6/uZCnB4trRpyQzn2PQNBtg5BZEL.gSE96',
    realName: '应急局1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:48',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '107',
    companyName: null,
  },
  {
    userId: '127',
    username: 'shengtaihuanjing_1',
    password: '$2a$10$ZvuqQUHDFot8looXivh3BOmN/D2dMxrMKhzj0rnbtpIRemlZi5oMa',
    realName: '生态环境局1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:49',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '109',
    companyName: null,
  },
  {
    userId: '128',
    username: 'fagai_2',
    password: '$2a$10$yjw9p.mxnRmLlIB6SEYdDeAvku86eyZ5/.tVNOrf6s8WkS4qIMdaW',
    realName: '发改局2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:49',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '108',
    companyName: null,
  },
  {
    userId: '129',
    username: 'jiantong_1',
    password: '$2a$10$rsZR7S.1PB0QfRsX/dIc8uZW/sWrpB.MzSWay1LWkvIHojQoi3ZfK',
    realName: '交通运输局1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:49',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '110',
    companyName: null,
  },
  {
    userId: '130',
    username: 'jiantong_2',
    password: '$2a$10$eEwLgRdrgDScqFl7roORkOl4aDlv7rD2SddPpKb6tiaEzKxKfkGmG',
    realName: '交通运输局2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:49',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '110',
    companyName: null,
  },
  {
    userId: '131',
    username: 'chengxiangzhifa_1',
    password: '$2a$10$BaKAF7.fL8IJZY2s.r/Lwud/D7cMv5DYd9Dyfr.hPgLb.APFJQ6xy',
    realName: '城乡管理执法中心1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:49',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '111',
    companyName: null,
  },
  {
    userId: '132',
    username: 'shengtaihuanjing_2',
    password: '$2a$10$S8Dnl8QLL1IZ8SfwkVv31eC4NzzanSX6DS2RdLKmAi7X5m8OHiEJq',
    realName: '生态环境局2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:49',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '109',
    companyName: null,
  },
  {
    userId: '133',
    username: 'chengxiangzhifa_2',
    password: '$2a$10$AYYN5DLecVQJjprvzBMwnuft9kqNgECfadVEOLyw.pIgRiQxNGBF.',
    realName: '城乡管理执法中心2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:49',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '111',
    companyName: null,
  },
  {
    userId: '134',
    username: 'ducha_1',
    password: '$2a$10$ce8909Rdh9gg5/Uy1LVsoe1ybJzhiOYdm7PNiTg5hRoFB6Xdcq3t.',
    realName: '政府督查室1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:49',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '112',
    companyName: null,
  },
  {
    userId: '135',
    username: 'ducha_2',
    password: '$2a$10$qdBVbrgX0kiUWKe.H.AT..cEHJJIKgbUfz5rmAnnTdQIs3L0Qldk6',
    realName: '政府督查室2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:49',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '112',
    companyName: null,
  },
  {
    userId: '136',
    username: 'fenghuangcheng_1',
    password: '$2a$10$QHEKAtg2nPvsPsdKA2ebNOvAF7JyVQ7GARlO7w73.fhinZWsfSQpW',
    realName: '凤凰城街道1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:49',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '79',
    companyName: null,
  },
  {
    userId: '137',
    username: 'fengshan_1',
    password: '$2a$10$olp08kfyv7HGljVdeT.0O.KqQyzbxiHHJyM9PZNIqByFBP7HlRBaO',
    realName: '凤山街道1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:49',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '80',
    companyName: null,
  },
  {
    userId: '138',
    username: 'fenghuangcheng_2',
    password: '$2a$10$2CdhXQjiI1BPgXm/0nk8bO1XK.nf59kWk7DKTt20TFhT.uR56racW',
    realName: '凤凰城街道2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:49',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '79',
    companyName: null,
  },
  {
    userId: '139',
    username: 'baoshan_1',
    password: '$2a$10$azg8QVUybCQmNbrIAwG2f.JqKHB5b7lyOqr9sd5jSwET/8DTuZpQG',
    realName: '宝山镇1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:49',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '82',
    companyName: null,
  },
  {
    userId: '140',
    username: 'caohe_1',
    password: '$2a$10$eeP3vGWM1QAck0MZXDm2VO0cObLQAQfPuLPnmRo.EqlwMuc0/cvhK',
    realName: '草河街道1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:49',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '81',
    companyName: null,
  },
  {
    userId: '141',
    username: 'caohe_2',
    password: '$2a$10$GHX4igpSqRdIDWGs1GQO7.WviWkRQGsk4EqnLVZ.n8VHBT49oYt1i',
    realName: '草河街道2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:49',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '81',
    companyName: null,
  },
  {
    userId: '142',
    username: 'baoshan_2',
    password: '$2a$10$PbV7ouCKpF6tHKxrfjLTj.D4mw7O3fGMCKSat.55/wq4tVYOQoeFO',
    realName: '宝山镇2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:50',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '82',
    companyName: null,
  },
  {
    userId: '143',
    username: 'baiqi_1',
    password: '$2a$10$XR2ADZ5jUzib9g0TaidHEOmxTmkeWMo.V7dSDx9a3KOGDtqKjwr4a',
    realName: '白旗镇1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:50',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '83',
    companyName: null,
  },
  {
    userId: '144',
    username: 'fengshan_2',
    password: '$2a$10$Nnwazse8u06wkxQFlGZylOwpLegKwbFEt6wGjHXQqxehiE6dvyomK',
    realName: '凤山街道2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:50',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '80',
    companyName: null,
  },
  {
    userId: '145',
    username: 'hongqi_2',
    password: '$2a$10$gsVOgHLbGNC3LUbithbKgu0l6Ij20u1za1JDd6MKsr9B.nAZinqVq',
    realName: '红旗镇2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:50',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '85',
    companyName: null,
  },
  {
    userId: '146',
    username: 'shalizhai_1',
    password: '$2a$10$MlgWy1DRmfuGXVRC48XaZOijpfYkDbZH8eblW3WuKLYjPK7tO45Om',
    realName: '沙里寨镇1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:50',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '84',
    companyName: null,
  },
  {
    userId: '147',
    username: 'shalizhai_2',
    password: '$2a$10$0eecrJfg4Sj7iMFheO6VzO847qbjud5I2v1A2YJ8JxxxUTJwnESbS',
    realName: '沙里寨镇2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:50',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '84',
    companyName: null,
  },
  {
    userId: '148',
    username: 'hongqi_1',
    password: '$2a$10$KI3GvK09JSDw8Aa8nNoZzer.cui3z0yOd9P0XAWrQfAv/hDhZU3iq',
    realName: '红旗镇1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:50',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '85',
    companyName: null,
  },
  {
    userId: '149',
    username: 'baiqi_2',
    password: '$2a$10$rAgViLAR5LeXNUDKXnCZXudG1od7tHWyYDePxUNi.dwdksoSFTsFm',
    realName: '白旗镇2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:50',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '83',
    companyName: null,
  },
  {
    userId: '150',
    username: 'bianmen_1',
    password: '$2a$10$zut/8kr.JhM2mlJDpdRm5OkRa1LK9QCeNbUvQPJL99g6mf/5aEQJS',
    realName: '边门镇1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:50',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '87',
    companyName: null,
  },
  {
    userId: '151',
    username: 'lanqi_2',
    password: '$2a$10$3AhoznbWum/VW1v0/bEbG.mBc9VLbqO59Kn/jSukZpQNGj0tNeVeG',
    realName: '蓝旗镇2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:50',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '86',
    companyName: null,
  },
  {
    userId: '152',
    username: 'bianmen_2',
    password: '$2a$10$cPJTKhxJy7wkNvWLI.Ne4ehpZyG41nE9a6X/zHadPnhTBb66bA59m',
    realName: '边门镇2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:50',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '87',
    companyName: null,
  },
  {
    userId: '153',
    username: 'lanqi_1',
    password: '$2a$10$Rar2vuiLp.VWXWqIxPDS7e7.tQmRzNtU0ySjXi8Xk3qPAu0Y/fkj.',
    realName: '蓝旗镇1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:50',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '86',
    companyName: null,
  },
  {
    userId: '154',
    username: 'shicheng_1',
    password: '$2a$10$FhDRDe4BBRuQFr/9tZS3jOza94b20Hctp2C2ZvZyyZTx.VSUT1X1i',
    realName: '石城镇1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:50',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '89',
    companyName: null,
  },
  {
    userId: '155',
    username: 'dongtang_2',
    password: '$2a$10$tgw0Ocb.IdI2ikxs8coU.errCAg6Gy2PUTmtNEjNNYlonnVZj2252',
    realName: '东汤镇2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:50',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '88',
    companyName: null,
  },
  {
    userId: '157',
    username: 'shicheng_2',
    password: '$2a$10$GiNOWpxjwA7biqnsn.lVou.qEurpDuh9sLjxDp1q/wK4eG9Z9kP/2',
    realName: '石城镇2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:50',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '89',
    companyName: null,
  },
  {
    userId: '158',
    username: 'daxing_1',
    password: '$2a$10$OXsaRzNux9768vfZnt4l4OpZgDTFQH3L5qR3PNuzQDf683TyKzmrm',
    realName: '大兴镇1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:50',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '90',
    companyName: null,
  },
  {
    userId: '159',
    username: 'dongtang_1',
    password: '$2a$10$JY3WksdON8O94.AQP/9cU.GRU.gbxI29R3Z5NooNR6gwzS0ctw4i.',
    realName: '东汤镇1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:50',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '88',
    companyName: null,
  },
  {
    userId: '160',
    username: 'aiyang_2',
    password: '$2a$10$we6pLHV1BGwvqJWEit8dMu4bXSRAO4KqPcIlFI1roUVC1zM1nT5NO',
    realName: '爱阳镇2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:51',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '91',
    companyName: null,
  },
  {
    userId: '161',
    username: 'aiyang_1',
    password: '$2a$10$fYnxfb9bipdgpNzApY5/Jul6l2h4JgiDRINOc9vXk9ft4SyRvcD9a',
    realName: '爱阳镇1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:51',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '91',
    companyName: null,
  },
  {
    userId: '162',
    username: 'saima_1',
    password: '$2a$10$XxJFX9ww7uj0wBKzbrc2lev3FPALTcXe0R.nY5ZYr.7/VZ7n8rQra',
    realName: '赛马镇1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:51',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '92',
    companyName: null,
  },
  {
    userId: '163',
    username: 'saima_2',
    password: '$2a$10$9A5kix7QwFYaV3TO066X2uHgWTyOBmd3NITGanu1KcHaeUGWzw6pO',
    realName: '赛马镇2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:51',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '92',
    companyName: null,
  },
  {
    userId: '164',
    username: 'dixiongshan_1',
    password: '$2a$10$X.PSilaFCMdJmebD03v2mudnA1/rCMXnGbBjK33H.LzDR1tYfRsRq',
    realName: '弟兄山镇1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:51',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '93',
    companyName: null,
  },
  {
    userId: '165',
    username: 'dixiongshan_2',
    password: '$2a$10$xB2Sidsdqs3YDCuKMwCtau3zTtc.FmkEQP6ox.s2kGA3kkNEkWjoG',
    realName: '弟兄山镇2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:51',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '93',
    companyName: null,
  },
  {
    userId: '166',
    username: 'jiguanshan_1',
    password: '$2a$10$FMIiEJ7HfwIes0OINBYfqeOHN0Q3XOja0Q.a37AkdbsOImLA1H4Ky',
    realName: '鸡冠山镇1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:51',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '94',
    companyName: null,
  },
  {
    userId: '168',
    username: 'tongyuanpu_1',
    password: '$2a$10$.U2xKp5Rcsg8mMEg8bVYc.5XbTlVewHdjtXYS9qx8jyozcpCVNrSe',
    realName: '通远堡镇1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:51',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '96',
    companyName: null,
  },
  {
    userId: '170',
    username: 'liujiahe_2',
    password: '$2a$10$Bbh/0F1GNilieDiwPLbgHefIl/Q/ctSp0KMpwP2lPrJdQx1TUWkva',
    realName: '刘家河镇2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:51',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '95',
    companyName: null,
  },
  {
    userId: '171',
    username: 'tongyuanpu_2',
    password: '$2a$10$ug3rMd5dB07U55tT2tNMAOZmXQpMPea6TOB0zlLeQJffYHBNl5Sa.',
    realName: '通远堡镇2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:51',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '96',
    companyName: null,
  },
  {
    userId: '172',
    username: 'qingchengzi_2',
    password: '$2a$10$IvWPCVrNz3zacgyMM4UgD.b5aHZT0uyVRLkXfBExqDlajxdwlSW0q',
    realName: '青城子镇2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:51',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '98',
    companyName: null,
  },
  {
    userId: '173',
    username: 'simenzi_1',
    password: '$2a$10$JR0dfmGocPwtuz.PgXulzue3thFljxo4fMhX7c2aw/1rqBrsT3Wk.',
    realName: '四门子镇1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:51',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '97',
    companyName: null,
  },
  {
    userId: '174',
    username: 'simenzi_2',
    password: '$2a$10$4YZvxyaQyfYjyct7Mv4pSOMozAJlyvhRwGvNVmCh.LVeQ3HwKmflq',
    realName: '四门子镇2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:51',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: '186a',
    city: null,
    companyId: '97',
    companyName: null,
  },
  {
    userId: '175',
    username: 'qingchengzi_1',
    password: '$2a$10$g4MX2eDVlLGc8jhmHuIc/eOHyq6.BS5HTINz5YAPb3wCT4uHAXuHu',
    realName: '青城子镇1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:38:51',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '98',
    companyName: null,
  },
  {
    userId: '176',
    username: 'dashujuju_1',
    password: '$2a$10$PG2g9kDjYUI6JSKO9WdZUOeunsA4ngD5jnV0bL8CT.OgDbEYkrMl.',
    realName: '大数据局1',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:57:49',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '113',
    companyName: null,
  },
  {
    userId: '177',
    username: 'dashujuju_2',
    password: '$2a$10$fjiOkuTHp0K/HjFufsa1PexHk9wJ7lNPmv2YyVH4id8L9fJ8ssKBa',
    realName: '大数据局2',
    email: 'ceshi@163.com',
    gender: '男',
    image: null,
    createTime: '2023-12-21 16:58:31',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '113',
    companyName: null,
  },
  {
    userId: '178',
    username: 'ceshirole',
    password: '$2a$10$8hbC8Z9SeFiGtJpDqeSIxu6H27CAdllc2oHscxVlUdEsdlPdxoPwW',
    realName: '测试权限',
    email: '1@qq.com',
    gender: '女',
    image: null,
    createTime: '2023-12-27 17:09:21',
    updateTime: null,
    roleId: null,
    roleIds: null,
    phoneNumber: null,
    city: null,
    companyId: '46',
    companyName: null,
  },
]);
const userCheckedList = ref([]);
const filterText = ref('');
const treeRef = ref(null);
const userInfo = ref([]);

const defaultProps = {
  children: 'child',
  label: 'name',
  id: 'officeId',
  parentId: 'parentId',
};

const closeChangeBoxShowDialog = () => {
  emit('closeChangeBoxShowDialog', false);
};

onMounted(() => {
  // !获取组织机构
  defaultExpanded.value = [treeData.value[0].officeId];
});

const handleNodeClick = () => {
  // !获取组织机构下的人员列表Api
};

/*
 *@description: 获取组织机构
 *@param: {}
 *@return:{}
 */
// const getInformationAllOfficeApi = async () => {
//   const [err, data] = await getInformationAllOffice();

//   if (!err) {
//     treeData.value = data.data;
//     defaultExpanded.value = [data.data[0].officeId];
//   }
// };

/*
 *@description: 获取组织机构下的人员列表
 *@param: {}
 *@return:{}
 */
// const getQueryByOfficeIdApi = async (id) => {
//   const [err, data] = await getQueryByOfficeId({
//     officeId: id,
//   });

//   if (!err) {
//     if (data.data.length) {
//       userList.value = data.data;
//     } else {
//       userList.value = [];
//     }
//   }
// };

watch(filterText, (val) => {
  treeRef.value.filter(val);
});

// 筛选组织机构（过滤节点）
const filterNode = (value, data) => {
  if (!value) return true;

  return data.parentName.includes(value);
};

const onChangeRightChecked = (e) => {
  const userInfos = [];

  userList.value.filter((item) => {
    e.map((v) => {
      if (item.userId == v) {
        userInfos.push(item);
      }
    });
  });

  userInfo.value = userInfos;
};

const handleSubmit = () => {
  emit('handleUserInfo', userInfo.value);
};
</script>
<template>
  <div class="organization_root">
    <ElDialog
      v-if="orgboxShow"
      v-model="orgboxShow"
      :append-to-body="false"
      :close-on-click-modal="false"
      destroy-on-close
      :show-close="false"
      align-center="center"
    >
      <template #header>
        <div class="my-header">
          <div class="dialog-title">组织机构</div>
          <div class="dialog-close" @click="closeChangeBoxShowDialog()">
            <ElIcon color="#ffffff"><CloseBold /></ElIcon>
          </div>
        </div>
      </template>
      <main>
        <div class="org_left">
          <div class="header_">组织机构</div>
          <ElInput v-model="filterText" class="m-2 w-50" placeholder="请输入搜索名称" :suffix-icon="Search" />
          <div class="tree_box">
            <ElTree
              ref="treeRef"
              :data="treeData"
              :props="defaultProps"
              node-key="officeId"
              :highlight-current="true"
              :default-expanded-keys="defaultExpanded"
              :filter-node-method="filterNode"
              @node-click="handleNodeClick"
            />
          </div>
        </div>
        <div class="org_right">
          <ElTransfer
            v-model="userCheckedList"
            filterable
            :props="{
              key: 'userId',
              label: 'realName',
            }"
            filter-placeholder="搜索人员"
            :data="userList"
            :titles="['待选人员', '已选人员']"
            @right-check-change="onChangeRightChecked($event)"
          />
        </div>
      </main>
      <div class="dialog-footer">
        <div @click="closeChangeBoxShowDialog()">取消</div>
        <div @click="handleSubmit()">确定</div>
      </div>
    </ElDialog>
  </div>
</template>

<style scoped lang="scss">
.organization_root {
  :deep(.el-dialog) {
    width: 775px;
    height: 577px;
    border-radius: 10px;
  }

  :deep(.el-dialog__header) {
    height: 40px;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff;
    font-weight: 600;

    font-size: 18px;
    text-align: center;
    background: #d9001b;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  :deep(.el-dialog__body) {
    padding: 7px 15px !important;
  }
  .my-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
  }

  main {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    .org_left {
      .header_ {
        width: 230px;
        height: 40px;
        padding: 10px 12px;
        border: 1px solid #797979;
        border-radius: 6px;
      }

      :deep(.el-input) {
        width: 230px;
        margin-top: 4px;
      }

      .tree_box {
        width: 230px;
        min-height: 403px;
        max-height: 407px;
        margin-top: 1px;
        padding-top: 5px;
        overflow: auto;
        border: 1px solid #797979;
        border-radius: 6px;
        &::-webkit-scrollbar {
          display: none;
          width: 0 !important;
        }
      }
    }

    .org_right {
      width: 500px;
      height: 480px;
      padding: 10px 5px;
      border: 1px solid #797979;
      border-radius: 6px;
      :deep(.el-transfer__buttons) {
        padding: 0 5px;
      }
      :deep(.el-transfer__button) {
        width: 15px;
        height: 12px;
      }
      :deep(.el-transfer-panel__body) {
        height: 420px !important;
      }
    }
  }

  .dialog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: -5px;
    div {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 60px;
      height: 30px;
      font-size: 16px;
      font-family: Source Han Sans CN, Source Han Sans CN-Normal;
      border-radius: 50px;
      cursor: pointer;
      &:first-child {
        margin-right: 20px;
        color: #333333;
        border: 1px solid #797979;
      }

      &:nth-child(2) {
        color: #ffffff;
        background: #d9001b;
        border: 1px solid #d9001b;
      }
    }
  }
}
</style>
